package com.ruiysoft.crm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 客户导入批次记录
 *
 * @author fanyl
 * @date 2019-06-23 23:28:20
 */
@Data
@Accessors(chain = true)
@TableName(value = "biz_batch_client_record")
public class BizBatchClientRecord extends Model<BizBatchClientRecord> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 机构编码
     */
    @TableField(value = "enterprise_id", exist = true)
    private String enterpriseId;

    /**
     * 批次号
     */
    @TableField(value = "batch_no", exist = true)
    private String batchNo;
    /**
     * 客户id集合
     */
    @TableField(value = "client_ids", exist = true)
    private String clientIds;

    /**
     * 用户名称
     */
    @TableField(value = "userName", exist = true)
    private String userName;
    /**
     * 用户ID
     */
    @TableField(value = "user_id", exist = true)
    private Integer userId;

    /**
     * 批次类型
     */
    @TableField(value = "batch_type", exist = true)
    private String batchType;


    /**
     * 创建日期
     */
    @TableField(value = "create_date", exist = true)
    private LocalDateTime createDate;
    /**
     * 更新日期
     */
    @TableField(value = "modification_date", exist = true)
    private LocalDateTime modificationDate;

    /**
     * 备注
     */
    @TableField(value = "remark", exist = true)
    private String remark;

}